package com.hzw.saas.web.app.user.param;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

import com.hzw.saas.common.util.AccountValidatorUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author zzl
 * @since 01/13/2021
 */
@Data
@ApiModel(value = "邮箱验证")
public class EmailVerifyParam {

    @NotBlank(message = "邮箱不可为空")
    @ApiModelProperty(value = "邮箱", position = 1, required = true)
    @Pattern(regexp = AccountValidatorUtil.REGEX_EMAIL, message = "邮箱格式不正确")
    private String email;

    @NotBlank(message = "验证码不可为空")
    @ApiModelProperty(value = "验证码", position = 2, required = true)
    private String verifyCode;

}
